﻿<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="format-detection" content="telephone=no">
		<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0" />
		<meta content="telephone=no" name="format-detection" />
		<meta http-equiv="Cache-Control" content="no-transform " />
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="applicable-device" content="mobile" />
		<title>最全小说</title>
		<meta name="Keywords" content="" />
		<meta name="Description" content="" />
		<link rel="stylesheet" type="text/css" href="/Public/home/css/ranking.css" />
		<link rel="stylesheet" type="text/css" href="/Public/home/css/recharge_2.css" />
		<script>
			var t_text = "最全小说";
			var url_channel = "";
			if(url_channel != '') {
				try {
					var state = {
						title: t_text,
						url: url_channel
					};
					history.replaceState(state, t_text, url_channel);
				} catch(e) {}
			}
		</script>
		<script type="text/javascript" src="/Public/home/js/jquery-1.11.1.min.js"></script>
		<script type="text/javascript" src="/Public/home/js/public.js"></script>
		<script type="text/javascript" src="/Public/home/js/pay.js"></script>
		<style>
			body {
				-webkit-touch-callout: none;
				-webkit-user-select: none;
				-khtml-user-select: none;
				-moz-user-select: none;
				-ms-user-select: none;
				user-select: none;
			}
		</style>
	</head>

	<body>
		<div class="wrapper">
			<!--头部 begin -->
			<div class="wx_header">
				<div class="wx_nav_box1">
					<div class="wx_home1">
						<a href="{:U('Index/index')}"><i class="back_icos"></i><em>首页</em></a>
					</div>
					<a href="javascript:;" class="logo">排行榜</a>
				</div>
			</div>
			<!--头部 end -->
			<!--排行榜 begin-->
			<div class="rankwrap">
				<div class="rankindex">
					<a href="/Rank/ranking_info?cate=1">
						<div class="ranktitle"><i class="clicktops_bg"></i></div>
						<div class="ranktxt">
							<div class="rankpic"><i class="clicktops">点击榜</i></div>
							<div class="rankinfo">
								<ul>
									<li><em class="first">1</em>{$click_rank[0]['name']}<i class="author">{$click_rank[0]['writer']?$click_rank[0]['writer']:"佚名"}</i></li>
									<li><em class="second">2</em>{$click_rank[1]['name']}<i class="author">{$click_rank[1]['writer']?$click_rank[1]['writer']:'佚名'}</i></li>
									<li><em class="third">3</em>{$click_rank[2]['name']}<i class="author">{$click_rank[2]['writer']?$click_rank[2]['writer']:'佚名'}</i></li>
								</ul>
							</div>
							<div class="rankmore"><i class="rank_moreicos"></i></div>
						</div>
					</a>
				</div>
				<!--<div class="rankindex">
					<a href="/Rank/ranking_info?cate=2">
						<div class="ranktitle"><i class="bestsellertops_bg"></i></div>
						<div class="ranktxt">
							<div class="rankpic"><i class="bestsellertops">畅销榜</i></div>
							<div class="rankinfo">
								<ul>
									<li><em class="first">1</em>{$hot_rank[0]['novel_name']}<i class="author">{$hot_rank[0]['writer']?$hot_rank[0]['writer']:'未找到'}</i></li>
									<li><em class="second">2</em>{$hot_rank[1]['novel_name']}<i class="author">{$hot_rank[1]['writer']?$hot_rank[1]['writer']:'未找到'}</i></li>
									<li><em class="third">3</em>{$hot_rank[2]['novel_name']}<i class="author">{$hot_rank[2]['writer']?$hot_rank[2]['writer']:'未找到'}</i></li>
								</ul>
							</div>
							<div class="rankmore"><i class="rank_moreicos"></i></div>
						</div>
					</a>
				</div>-->
				<div class="rankindex">
					<a href="/Rank/ranking_info?cate=3">
						<div class="ranktitle"><i class="rewardtops_bg"></i></div>
						<div class="ranktxt">
							<div class="rankpic"><i class="rewardtops">打赏榜</i></div>
							<div class="rankinfo">
								<ul>
									<li><em class="first">1</em>{$dashang_rank[0]['name']}<i class="author">{$dashang_rank[0]['writer']?$dashang_rank[0]['writer']:'佚名'}</i></li>
									<li><em class="second">2</em>{$dashang_rank[1]['name']}<i class="author">{$dashang_rank[1]['writer']?$dashang_rank[1]['writer']:'佚名'}</i></li>
									<li><em class="third">3</em>{$dashang_rank[2]['name']}<i class="author">{$dashang_rank[2]['writer']?$dashang_rank[2]['writer']:'佚名'}</i></li>
								</ul>
							</div>
							<div class="rankmore"><i class="rank_moreicos"></i></div>
						</div>
					</a>
				</div>
				<div class="rankindex">
					<a href="/Rank/ranking_info?cate=4">
						<div class="ranktitle"><i class="retainedtops_bg"></i></div>
						<div class="ranktxt">
							<div class="rankpic"><i class="retainedtops">留存榜</i></div>
							<div class="rankinfo">
								<ul>
									<li><em class="first">1</em>{$coll_rank[0]['name']}<i class="author">{$coll_rank[0]['writer']?$coll_rank[0]['writer']:'佚名'}</i></li>
									<li><em class="second">2</em>{$coll_rank[1]['name']}<i class="author">{$coll_rank[1]['writer']?$coll_rank[1]['writer']:'佚名'}</i></li>
									<li><em class="third">3</em>{$coll_rank[2]['name']}<i class="author">{$coll_rank[2]['writer']?$coll_rank[2]['writer']:'佚名'}</i></li>
								</ul>
							</div>
							<div class="rankmore"><i class="rank_moreicos"></i></div>
						</div>
					</a>
				</div>
				<!--<div class="rankindex">
					<a href="/Rank/ranking_info?cate=5">
						<div class="ranktitle"><i class="weekstops_bg"></i></div>
						<div class="ranktxt">
							<div class="rankpic"><i class="weekstops">本周潜力榜</i></div>
							<div class="rankinfo">
								<ul>
									<li><em class="first">1</em>{$poten_rank[0]['novel_name']}<i class="author">{$poten_rank[0]['writer']?$poten_rank[0]['writer']:'未找到'}</i></li>
									<li><em class="second">2</em>{$poten_rank[1]['novel_name']}<i class="author">{$poten_rank[1]['writer']?$poten_rank[1]['writer']:'未找到'}</i></li>
									<li><em class="third">3</em>{$poten_rank[2]['novel_name']}<i class="author">{$poten_rank[2]['writer']?$poten_rank[2]['writer']:'未找到'}</i></li>
								</ul>
							</div>
							<div class="rankmore"><i class="rank_moreicos"></i></div>
						</div>
					</a>
				</div>-->
			</div>
			<!--排行榜 end-->
		</div>
		<script>
			$(function() {
				var fontSize = $(window).width() / 25;
				$("html").css("font-size", fontSize);
				uid = "0";
			})
		</script>
		<!--login begin-->
		<div class="backdrop bh_wxlogin_lay" style="display: none;"></div>
		<div class="modal bh_wxlogin_lay" style="margin-top: -114px; display: none;">
			<div class="inner clearfix">
				<div class="wechat-login-box">
					<div class="head">
						<div class="title">您还未登陆哦！</div>
					</div>
					<div class="body mt-10 clearfix">
						<a href="https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=101378662&redirect_uri=http%3A%2F%2Fm.qirexiaoshuo.com%2Fmy%2FqqLogin%3Fcallback%3Dhttp%253A%252F%252Fm.qirexiaoshuo.com%252Frank%252Franking.html&state=5ff9ee2f5b4fa1b10f8e863a8ec4c1ec&scope=get_user_info" class="btn qq mt-10">QQ一键登录</a>
					</div>
				</div>
				<div class="bottom"> 登录有问题？
					<a href="/my/kefu.html">联系客服</a>
				</div>
				<div class="pull-action">
					<a onclick="hide_login();"><i class="icon-close"></i></a>
				</div>
			</div>
		</div>
		<!--login end-->
		<!-- 选择充值书币数额面板 -->
		<div class="backdrop bh_recharge_box" style="display: none;"></div>
		<div class="item2p recharge_sc bh_recharge_box" style="display: none;">
			<div class="inner">
				<div class="title"><strong>请选择充值金额</strong>
					<p class="read">首充翻倍送书币</p>
				</div>
				<div class="close">
					<a href="javascript:;" onclick="hide_recharge_box();"></a>
				</div>
				<div class="entry">
					<ul>
						<li>
							<a onclick="switchCoins(this,50)" class="active"><i class="chong-icon-check"></i><span class="jine">50元</span><i class="cz-xian"></i>
								<div class="rt"><span class="tip">500书币+300书币</span><i class="reward">(多送30元)</i></div>
							</a>
						</li>
						<li>
							<a onclick="switchCoins(this,30)"><span class="jine">30元</span><i class="cz-xian"></i>
								<div class="rt" style="line-height: 45px;"><span class="tip">300书币</span><i class="reward">(多送0元)</i></div>
							</a>
						</li>
						<li>
							<a onclick="switchCoins(this,100)"><i class="chong-icon-check"></i><span class="jine">100元</span><i class="cz-xian"></i>
								<div class="rt"><span class="tip">1000书币+800书币</span><i class="reward">(多送80元)</i></div>
							</a>
						</li>
						<li>
							<a onclick="switchCoins(this,200)" class=""><i class="chong-icon-check"></i><span class="jine">200元</span><i class="cz-xian"></i>
								<div class="rt"><span class="tip">2000书币+2000书币</span><i class="reward">(多送200元)</i></div>
							</a>
						</li>
					</ul>
				</div>
				<div class="btn">
					<a href="javascript:;" onclick="show_choice_pay();">立即充值</a>
				</div>
			</div><input type="hidden" value="50" id="coinmoney"></div>
		<!-- 选择充值书币数额面板 -->
		<!-- 支付浮层 -->
		<div class="backdrop choice_pay_box" style="display: none;"></div>
		<div class="item2p choice-pay choice_pay_box" style="display: none;">
			<div class="inner">
				<div class="title"><strong>选择支付方式</strong></div>
				<div class="close">
					<a href="javascript:;" onclick="hide_choice_pay();"></a>
				</div>
				<div class="entry">
					<ul>
						<!--<li><a href="#"><i class="icon-ios"></i>苹果支付</a></li>-->
						<li id="now_wx">
							<a href="javascript:;" onclick="apiPay_now_fun(2);"><i class="icon-wechat"></i>微信支付</a>
						</li>
						<li>
							<a href="javascript:;" onclick="apiPay_zfb_fun(2);"><i class="icon-alipay"></i>支付宝支付</a>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<!--支付浮层 -->
		<script>
			// 支付宝支付
			var paynow_url = "/nowpay/pay";

			function apiPay_now_fun(pro_id) {
				// pro_id  1购买VIP  2购买书币  3打赏
				if(pro_id == 1) {
					paytitle = '购买VIP';
					payfee = 28;
				}
				if(pro_id == 2) {
					paytitle = '购买书币';
					payfee = $("#coinmoney").val();
				}
				if(pro_id == 3) {
					paytitle = '打赏';
					payfee = $("#dasmoney").val();
				}
				payfee = parseFloat(payfee) + 0;
				if(payfee < 0.01 || isNaN(payfee)) {
					bh_msg_tips(paytitle + '金额不能小于0.01元');
					return false;
				}
				checkandnowpay(payfee, pro_id, paytitle, bid, encodeURI(window.location.href));
			}
		</script>
		<script>
			(function() {
				var bp = document.createElement('script');
				var curProtocol = window.location.protocol.split(':')[0];
				if(curProtocol === 'https') {
					bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
				} else {
					bp.src = 'http://push.zhanzhang.baidu.com/push.js';
				}
				var s = document.getElementsByTagName("script")[0];
				s.parentNode.insertBefore(bp, s);
			})();
		</script>
		<script>
			var _hmt = _hmt || [];
			(function() {
				var hm = document.createElement("script");
				hm.src = "https://hm.baidu.com/hm.js?fcd37298453821c3bc8b266221db88ac";
				var s = document.getElementsByTagName("script")[0];
				s.parentNode.insertBefore(hm, s);
			})();
		</script>
		<script>
			/*防止iframe劫持*/
			if(self.frameElement && self.frameElement.tagName == "IFRAME") {
				top.location.href = self.location.href;
			}
			if(window.frames.length != parent.frames.length) {
				top.location.href = self.location.href;
			}
			if(self != top) {
				top.location.href = self.location.href;
			}
			var cookie_channel = "";
			var cookie_user = "1506047321314";
			var pv_uid = "0";
			var noadduv = "0";
			if(parseInt(noadduv) > 0) {
				cookie_user = 0;
			}

			if(parseInt(cookie_channel) * 1 > 0) {
				tj_pv_uvhost(pv_uid, cookie_channel, cookie_user);
			}

			// 记录pv 和uv
			function tj_pv_uvhost(uid, channel, user) {
				var tj_pv_uv_url = "//uv.qirexiaoshuo.com/Index/record_pvuv";
				var tj_pv_uv_data = {
					uid: uid,
					channel: channel,
					user: user
				};
				AjaxJsonP(tj_pv_uv_url, tj_pv_uv_data)
			}
		</script>
		<style>
			#EG0phD8f {
				display: none !important;
			}
		</style>
		<script>
			var nowPayQuery = false;
			var payPackage = null;

			function checkandnowpay(fee, product_id, product_name, book_id, callback) {
				var report_url = '/nowpay/pay';
				var report_data = {
					fee: fee,
					product_id: product_id,
					product_name: product_name,
					bid: book_id,
					callback: callback,
					random: Math.floor(Math.random() * 10000 + 1)
				};
				AjaxJson(report_url, report_data, function(res) {
					if(res.status * 1 == 1) {
						payPackage = res.data;
						nowPayQuery = true;
						window.location.href = payPackage.weixin_url;
						//不知道他们的同步回调（前台回调）是怎么回事
					} else if(res.status * 1 == -1) {
						//需要登录
						bh_msg_tips("需要登录，请重新登录重试");
						show_login();
					} else if(res.status * 1 == -2) {
						//输入参数有问题
						bh_msg_tips("选择的充值信息有误，请重新选择重试");
					} else if(res.status * 1 == -11) {
						//输入参数有问题
						bh_msg_tips("下单失败，请稍后重试");
					} else {
						bh_msg_tips(res.msg);
					}
				});
			}

			function pageFocusQueryNowPay() {
				//查询是否支付成功，成功则提示成功，然后刷新页面
				if(nowPayQuery) {
					AjaxJson('/nowpay/ajax_query', payPackage, function(res) {
						hide_choice_pay();
						if(res.status * 1 == 1) {
							bh_msg_tips("支付成功");
							setTimeout(function() {
								window.location.reload();
							}, 500);
							return;
						} else {
							//                    bh_msg_tips("未支付成功");
							return;
						}
					});
				}
			}

			$(function() {
				setInterval(function() {
					pageFocusQueryNowPay();
				}, 2000);
			})
		</script>
	</body>

</html>